package 作业3.test3;

class Square extends Shape {
    private double x;
    Square(){}
    Square(double x){
        this.x=x;
    }
    public double getX(){
        return x;
    }
    public void showArea(){
        area=getX()*getX();
        System.out.println(area);
    }
}
